package com.test.processor;

public class CustomBeanPostProcessor implements BeanPostProcessor{

    public Object postProcessBeforeInitialization(Object bean, String beanName) throws Exception {
        System.out.println("BeanPostProcessor的前置处理：" + beanName);
        return bean;
    }

    public Object postProcessAfterInitialization(Object bean, String beanName) throws Exception {
        System.out.println("BeanPostProcessor的后置处理：" + beanName);
        return bean;
    }
}
